﻿using System;
using TechTalk.SpecFlow;
using UnityScenarios;
using OpenQA.Selenium;
using OpenQA.Selenium.Support;
using OpenQA.Selenium.Support.UI;
using OpenQA.Selenium.IE;
using OpenQA.Selenium.Chrome;
using OpenQA.Selenium.Firefox;
using NUnit.Framework;
using OpenQA.Selenium.Remote;
using OpenQA.Selenium.Support.PageObjects;
using System.Threading;

namespace UnityScenarios
{
    [Binding]
    public class PressCreateUserButtonSteps
    {
        [Given]
public void Given_I_click_on_Create_User()
{
    var ie = ScenarioContext.Current["browser"] as FirefoxDriver;
    ie.FindElement(By.ClassName("insertbtn")).Click();
}

        [Then]
public void Then_the_create_new_user_screen_page_is_displayed()
{
    var ie = ScenarioContext.Current["browser"] as FirefoxDriver;
    ie.PageSource.Contains("current");
    ie.Close();
    ie.Dispose();
}
    }
}
